package com.example.lianguisystem.mapperLianGui;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.lianguisystem.entity.LianGuiLabelRecord;
import com.example.lianguisystem.entity.PanDianRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PanDIanMapper extends BaseMapper<PanDianRecord> {

    List<String> selectPanDianed(@Param("list") List<String> list);

    Integer insertInto(@Param("list") List<PanDianRecord> list);

    List<PanDianRecord> selectPanDianRecord(@Param("workshop") Integer workshop, @Param("username") String username, @Param("panDianTime") String panDianTime, @Param("status") Integer status);
    List<LianGuiLabelRecord> selectNoSubmitRecord(@Param("workshop") Integer workshop, @Param("username") String username, @Param("panDianTime") Integer panDianTime, @Param("status") Integer status);

    PanDianRecord isPanDian(@Param("username") String username, @Param("labelId") String labelId, @Param("labelIdList") List<String> labelIdList);

    String selectTopPanDianTime(@Param("username") String username);
    String selectTopPanDianTimeOfAll(@Param("username") String username);

    List<String> listPanDianTime(@Param("username") String username);

    List<String> listPanDianPerson();

    Integer deleteRecordById(@Param("list") List<String> idList);

}
